package com.wefans.wefansapp.common.tool.data;

import java.util.Hashtable;
import java.util.List;



/**
 * 메인(투표하기)에서 화면에 보여질 서버 연동 정보 저장 데이터클래스
 * 
 * @author kimhyeongbae
 */
public class ResGetVoteOne
{
    private String                                         resultcode = null;//결과 “1” 인 경우 성공, “0”인 경우는 실패
    private String                                         my_star    = null;
    private ResGetVoteOneMainData                          poll_data  = null;
    private List<ResGetVoteOneCateData>                    cate_data  = null;
    private List<Hashtable<String, ResGetVoteOneData>>     data       = null;
    
    public boolean isSuccsess()
    {
        return ("1".equals(resultcode)) ? true : false;
    }
    public String getResultcode()
    {
        return resultcode;
    }
    public void setResultcode(String resultcode)
    {
        this.resultcode = resultcode;
    }
    public String getMy_star()
    {
        return my_star;
    }
    public void setMy_star(String my_star)
    {
        this.my_star = my_star;
    }
    public ResGetVoteOneMainData getMain_data()
    {
        return poll_data;
    }
    public void setMain_data(ResGetVoteOneMainData main_data)
    {
        this.poll_data = main_data;
    }
    public List<ResGetVoteOneCateData> getCate_data()
    {
        return cate_data;
    }
    public void setCate_data(List<ResGetVoteOneCateData> cate_data)
    {
        this.cate_data = cate_data;
    }
    public List<Hashtable<String, ResGetVoteOneData>> getData()
    {
        return data;
    }
    public void setData(List<Hashtable<String, ResGetVoteOneData>> data)
    {
        this.data = data;
    }


    /**
     * 투표상세 정보의 메인데이터
     * 
     * @author kimhyeongbae
     *
     */
    public static class ResGetVoteOneMainData
    {
        private String idx             = null;
        private String title           = null;
        private String sub_title       = null;
        private String content_path    = null;
        private String start_date      = null;
        private String end_date        = null;
        private String img_url         = null;
        private String out_num         = null;
        private String in_num          = null;
        private String cate_idx        = null;
        private String num_display     = null;
        private String poll_type       = null;
        private String mov_url         = null;
        private String is_vote         = null;
        private String is_open         = null;
        private String comment_cnt     = null;
        private String rank1_title     = null;
        private String rank1_poll_cnt  = null;
        private String rank2_title     = null;
        private String rank2_poll_cnt  = null;
        private String share_gap       = null;
        private String tournament_type = null;
        private String vote_term       = null;
        private String faq_idx         = null;
        private String app_title       = null;
        private String share_gap_text  = null;
        
        //additional property
        private byte[] imageBuffer     = null;
        
        public String getIdx()
        {
            return idx;
        }
        public void setIdx(String idx)
        {
            this.idx = idx;
        }
        public String getTitle()
        {
            return title;
        }
        public void setTitle(String title)
        {
            this.title = title;
        }
        public String getSub_title()
        {
            return sub_title;
        }
        public void setSub_title(String sub_title)
        {
            this.sub_title = sub_title;
        }
        public String getContent_path()
        {
            return content_path;
        }
        public void setContent_path(String content_path)
        {
            this.content_path = content_path;
        }
        public String getStart_date()
        {
            return start_date;
        }
        public void setStart_date(String start_date)
        {
            this.start_date = start_date;
        }
        public String getEnd_date()
        {
            return end_date;
        }
        public void setEnd_date(String end_date)
        {
            this.end_date = end_date;
        }
        public String getImg_url()
        {
            return img_url;
        }
        public void setImg_url(String img_url)
        {
            this.img_url = img_url;
        }
        public String getOut_num()
        {
            return out_num;
        }
        public void setOut_num(String out_num)
        {
            this.out_num = out_num;
        }
        public String getIn_num()
        {
            return in_num;
        }
        public void setIn_num(String in_num)
        {
            this.in_num = in_num;
        }
        public String getCate_idx()
        {
            return cate_idx;
        }
        public void setCate_idx(String cate_idx)
        {
            this.cate_idx = cate_idx;
        }
        public String getIs_vote()
        {
            return is_vote;
        }
        public void setIs_vote(String is_vote)
        {
            this.is_vote = is_vote;
        }
        public String getComment_cnt()
        {
            return comment_cnt;
        }
        public void setComment_cnt(String comment_cnt)
        {
            this.comment_cnt = comment_cnt;
        }
        public String getRank1_title()
        {
            return rank1_title;
        }
        public void setRank1_title(String rank1_title)
        {
            this.rank1_title = rank1_title;
        }
        public String getRank1_poll_cnt()
        {
            return rank1_poll_cnt;
        }
        public void setRank1_poll_cnt(String rank1_poll_cnt)
        {
            this.rank1_poll_cnt = rank1_poll_cnt;
        }
        public String getRank2_title()
        {
            return rank2_title;
        }
        public void setRank2_title(String rank2_title)
        {
            this.rank2_title = rank2_title;
        }
        public String getRank2_poll_cnt()
        {
            return rank2_poll_cnt;
        }
        public void setRank2_poll_cnt(String rank2_poll_cnt)
        {
            this.rank2_poll_cnt = rank2_poll_cnt;
        }
        public String getShare_gap()
        {
            return share_gap;
        }
        public void setShare_gap(String share_gap)
        {
            this.share_gap = share_gap;
        }
        public String getTournament_type()
        {
            return tournament_type;
        }
        public void setTournament_type(String tournament_type)
        {
            this.tournament_type = tournament_type;
        }
        public String getVote_term()
        {
            return vote_term;
        }
        public void setVote_term(String vote_term)
        {
            this.vote_term = vote_term;
        }
        public String getShare_gap_text()
        {
            return share_gap_text;
        }
        public void setShare_gap_text(String share_gap_text)
        {
            this.share_gap_text = share_gap_text;
        }
        public byte[] getImageBuffer()
        {
            return imageBuffer;
        }
        public void setImageBuffer(byte[] imageBuffer)
        {
            this.imageBuffer = imageBuffer;
        }
    };
    
    /**
     * 투표상세 정보의 카테고리 데이터
     * 
     * @author kimhyeongbae
     *
     */
    public static class ResGetVoteOneCateData
    {
        private String idx    = null;
        private String title  = null;
        public String getIdx()
        {
            return idx;
        }
        public void setIdx(String idx)
        {
            this.idx = idx;
        }
        public String getTitle()
        {
            return title;
        }
        public void setTitle(String title)
        {
            this.title = title;
        }
    };
    
    /**
     * 투표상세의 데이터 클래스
     * 
     * @author kimhyeongbae
     *
     */
    public static class ResGetVoteOneData
    {
        private String ranking       = null;
        private String idx           = null;
        private String img_url       = null;
        private String title         = null;
        private String sub_title     = null;
        private String poll_cnt      = null;
        private String view_type     = null;
        private String totl_poll_cnt = null;
        private String ratio         = null;
        
        //addtional property
        private byte[] imageBuffer   = null;
        
        public String getRanking()
        {
            return ranking;
        }
        public void setRanking(String ranking)
        {
            this.ranking = ranking;
        }
        public String getIdx()
        {
            return idx;
        }
        public void setIdx(String idx)
        {
            this.idx = idx;
        }
        public String getImg_url()
        {
            return img_url;
        }
        public void setImg_url(String img_url)
        {
            this.img_url = img_url;
        }
        public String getTitle()
        {
            return title;
        }
        public void setTitle(String title)
        {
            this.title = title;
        }
        public String getSub_title()
        {
            return sub_title;
        }
        public void setSub_title(String sub_title)
        {
            this.sub_title = sub_title;
        }
        public String getPoll_cnt()
        {
            return poll_cnt;
        }
        public void setPoll_cnt(String poll_cnt)
        {
            this.poll_cnt = poll_cnt;
        }
        public String getView_type()
        {
            return view_type;
        }
        public void setView_type(String view_type)
        {
            this.view_type = view_type;
        }
        public String getTotl_poll_cnt()
        {
            return totl_poll_cnt;
        }
        public void setTotl_poll_cnt(String totl_poll_cnt)
        {
            this.totl_poll_cnt = totl_poll_cnt;
        }
        public String getRatio()
        {
            return ratio;
        }
        public void setRatio(String ratio)
        {
            this.ratio = ratio;
        }
        public byte[] getImageBuffer()
        {
            return imageBuffer;
        }
        public void setImageBuffer(byte[] imageBuffer)
        {
            this.imageBuffer = imageBuffer;
        }
    };
    
}
